package com.boot.proxy;

/**
 * @Package com.boot.aop
 */
public class UserManagerImpl implements UserManager{

    //重写新增用户方法
    @Override
    public void addUser(String userName, String password) {
        System.out.println("调用了新增的方法！");
        System.out.println("传入参数为 userName: "+userName+" password: "+password);
    }

    //重写删除用户方法
    @Override
    public void delUser(String userName) {
        this.addUser("111","222");
        this.query("query");
        System.out.println("调用了删除的方法！");
        System.out.println("传入参数为 userName: "+userName);
    }

    private void query(String p){
        System.out.println("do query="+p);
    }
}
